<?php
class User_mgmt extends CI_Model {

	function __construct()
	{
		parent::__construct();
		$this->load->database();
		// autoload.php
		// library: Thank_auth, database
		// helper: url
	}
	
	public function get_username($uid)
	{
		$query = $this->db->get_where('adon_users', array('id' => $uid));
		$row = $query->row();
		return $this->db->last_query();
		//$this->db->last_query();
	}
}
?>